package com.wtl.service.test;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wtl.dao.test.UserDao;
import com.wtl.service.entity.User;

@Transactional
@Service(value="userService")
public class UserService {
	@Resource(name="userDao")
    private UserDao userDao;
    public User getUserBynumber(String number){
    	return this.userDao.selectByPrimaryKey(number);
    }
}
